import java.util.*;

class Employee {
	private double salary;
	String name;

	void setSalary(double salary) {
		this.salary = salary;
	}

	/*
	 * String getBiggestSalary(Employee nextEmp){
	 * 
	 * }
	 */
	double getSalary() {
		return salary;
	}
}

public class Arrays {
	public static void main(String[] args) {
		/*
		 * //double num = 0.51; //System.out.println( num);
		 */
		Scanner in = new Scanner(System.in);
		Employee employees[] = new Employee[5];
		for (int i = 0; i < employees.length; i++) {
			employees[i] = new Employee();
		}
		for (int i = 0; i < employees.length; i++) {
			System.out.println("Enter employees " + (i + 1) + " name");
			employees[i].name = in.next();
			System.out.println("Enter employees " + (i + 1) + " salary");
			employees[i].setSalary(in.nextDouble());

		}
		for (int i = 0; i < employees.length; i++) {

			for (int j = i; j < (employees.length); j++) {
				if (employees[i].getSalary() < employees[j].getSalary()) {
					Employee temp = employees[j];
					employees[i] = employees[j];
					employees[j] = temp;

				}
			}
		}
		System.out.println(employees[0].name+" has teh biggest salary( "+employees[0].getSalary()+" )");
	}
}